module UaliasesHelper
  def iscurrent_column(record) 
  target_id = element_row_id(:action => :list, :id => record.id)

  
  curraliasn = Ualia.find_by_iscurrent(true)
  if curraliasn.nil?
      radio_button_tag 'record[iscurrent]', 0, false,:onclick =>remote_function({ :url=>{:controller=>'ualiases',:action=>'mytest',:id=>record.id}})
  else
  
	  if record.name == curraliasn.name
	    radio_button_tag 'record[iscurrent]', 1, true,:onclick =>remote_function({ :url=>{:controller=>'ualiases',:action=>'mytest',:id=>record.id}})
	  else
	    radio_button_tag 'record[iscurrent]', 0, false,:onclick =>remote_function({ :url=>{:controller=>'ualiases',:action=>'mytest',:id=>record.id}})
	  end
	end


  end


end
